<table class="table">
  <tr>
    <th>ID</th>
    <th>用户</th>
    <th>IP</th>
    <th>方法</th>
    <th>路径</th>
    <th>访问时间</th>
  </tr>
  <% @accessLogs.each do |accessLog| %>
    <tr>
      <td><%= accessLog.id %></td>
      <td><%= accessLog.user.email %></td>
      <td><%= accessLog.ip %></td>
      <td><%= accessLog.method %></td>
      <td><%= accessLog.fullpath %></td>
      <td><%= accessLog.created_at.strftime("%Y-%m-%d %H:%M:%S") %></td>
    </tr>
  <% end -%>
</table>
<div class="text-center">
  <%= will_paginate @accessLogs, :previous_label => '上一页', :next_label => '下一页', renderer: BootstrapPagination::Rails %>
</div>